package tech.eyao.hs60x.enums;

/**
 * @author hejian
 * @date 2017年12月20日 上午10:24:48
 */
public enum CommandEvent {
	// 系统操作消息
	REBOOT(1200, "重启"),
    SHOTDOWN(1201,"关机"),
    FIND_PHONE(1202,"查找手机"),
    MONITOR(1203,"监听"),
    RECORD(1204,"录音"),
    QUERY_CHARGE(1205,"查询话费"),
    
    // 通知
    notification1301(1301,"绑定手机"),
    notification1302(1302,"解除绑定"),
    notification1303(1303,"发现好友"),
    notification1304(1304,"更新联系人"),
    notification1305(1305,"更新上课时段"),
    notification1306(1306,"更新省电时段"),
    notification1307(1307,"WIFI同步"),
    notification1308(1308,"更新闹钟设置"), 
    //notification1309(1309,"更新天气信息"),  // 不需要，每次登陆拉取服务端数据即可
    notification1310(1310,"离开安全区"),
    notification1311(1311,"进入安全区");
	
	
	private int code;
	private String	desc;
	
	public static CommandEvent getByValue(int code){
        for (CommandEvent type : CommandEvent.values()){
            if (type.code == code){
                return type;
            }
        }
        return null;
    }
	
	private CommandEvent(int code,String desc){
        this.code = code;
        this.desc = desc;
    }

	public int getCode() {
		return code;
	}

	public String getDesc() {
		return desc;
	}
}
